export default function useResetTableData(callback: () => ITableDataItem[]) {
  // tableData 数据重置
  const resetTableDataList = () => {
    callback().forEach((item) => {
      item.newest.name = item.original.name
      item.newest.ext = item.original.ext
      item.state = '10'
    })
  }

  return {
    resetTableDataList
  }
}
